//
//  GameView.m
//  Dear
//
//  Created by n22 on 15/8/17.
//  Copyright (c) 2015年 陈俊俊. All rights reserved.
//

#import "GGameView.h"
#import "UIImageView+WebCache.h"
@implementation GGameView

- (void)setModel:(GameModel *)model{
    self.backgroundColor = RGBA(0, 0, 0, 0.5);
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@?path=%@",ServerUrl,DearImage,model.pitcure]];
    [self.headImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"shoot1"]];
    self.titleLabel.text = model.name;
    self.contentView.text = model.details
    ;
}
- (IBAction)cancelClick:(id)sender {
    [self.delegate dissmiss];
}
- (IBAction)downLoadClick:(id)sender {
    [self.delegate downloadWith:@""];
}

@end
